package com.yxw.live_vod_boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxw.live_vod_boot.dto.follow.FollowAddDTO;
import com.yxw.live_vod_boot.dto.follow.FollowQueryDTO;
import com.yxw.live_vod_boot.dto.follow.ShopNewFriendQueryDTO;
import com.yxw.live_vod_boot.entity.YxFollowEntity;
import com.yxw.live_vod_boot.vo.FollowListVO;
import com.yxw.live_vod_boot.vo.NewFriendListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fangmaoxin
 * &#064;date  2023年11月21日
 */
public interface FollowMapper extends BaseMapper<YxFollowEntity> {

    List<FollowListVO> selectUserFollowList(@Param("page") Page<YxFollowEntity> page, @Param("userId") Long userId);

    List<NewFriendListVO> getNewFriendList(Page<YxFollowEntity> page, @Param("userId") Long userId);

    List<NewFriendListVO> getShopNewFriendList(Page<YxFollowEntity> page, @Param("userId") Long userId, @Param("dto") ShopNewFriendQueryDTO dto);

    Long getShopUserId(@Param("followeeShopId") Long followeeShopId);

}
